package com.ruihui.activity.pojo;

import com.baomidou.mybatisplus.enums.IdType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 赠送表
 * </p>
 *
 * @author cf123
 * @since 2018-10-11
 */
@ApiModel(value="Acpgift对象",description="赠品")
@TableName("ruihui_acpgift")
public class Acpgift implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 活动商品表id
     */
    @ApiModelProperty(value="活动商品表id")
    private Long acgoodsid;
    /**
     * 赠品-商品id
     */
    @ApiModelProperty(value="赠品-商品id")
    private Long gifggoodsid;
    /**
     * 数量
     */
    @ApiModelProperty(value="数量",required=true)
    private Integer pgnum;
    
    /**
     * 开始时间
     */
    @ApiModelProperty(value="开始时间")
    private BigDecimal starttime;
    /**
     * 结束时间
     */
    @ApiModelProperty(value="结束时间")
    private BigDecimal endtime;
    /**
     * 类型5赠品
     */
    @ApiModelProperty(value="类型1通用")
    private Integer type;
    /**
     * 状态，1开启2关闭
     */
    @ApiModelProperty(value="状态，1开启2关闭",required=true)
    private Integer state;
    /**
     * 排序
     */
    @ApiModelProperty(value="排序")
    private Integer sorting;
    /**
     * 描述
     */
    @ApiModelProperty(value="描述")
    private String contents;
    /**
     * 逻辑删除1显示，0删除
     */
    @ApiModelProperty(value="逻辑删除1显示，0删除")
    private Integer del;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public Long getAcgoodsid() {
		return acgoodsid;
	}

	public void setAcgoodsid(Long acgoodsid) {
		this.acgoodsid = acgoodsid;
	}

	public Integer getPgnum() {
        return pgnum;
    }

    public void setPgnum(Integer pgnum) {
        this.pgnum = pgnum;
    }

    public BigDecimal getStarttime() {
        return starttime;
    }

    public void setStarttime(BigDecimal starttime) {
        this.starttime = starttime;
    }

    public BigDecimal getEndtime() {
        return endtime;
    }

    public void setEndtime(BigDecimal endtime) {
        this.endtime = endtime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSorting() {
        return sorting;
    }

    public void setSorting(Integer sorting) {
        this.sorting = sorting;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

	public Long getGifggoodsid() {
		return gifggoodsid;
	}

	public void setGifggoodsid(Long gifggoodsid) {
		this.gifggoodsid = gifggoodsid;
	}

	public String toString() {
		return "Acpgift [id=" + id + ", acgoodsid=" + acgoodsid + ", gifggoodsid=" + gifggoodsid + ", pgnum=" + pgnum
				+ ", starttime=" + starttime + ", endtime=" + endtime + ", type=" + type + ", state=" + state
				+ ", sorting=" + sorting + ", contents=" + contents + ", del=" + del + "]";
	}

	


}
